.nm-panel {
  position: relative;
  outline: none;
  background: #fff;
  max-height: 100%;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, .05);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.nm-panel--compact {
  max-height: 50vh;
}

.nm-panel__scrollableArea {
  overflow-y: auto;
  overflow-y: overlay;
  overflow-x: hidden;
}

.nm-panel__scrollableArea:empty+.nm-toolbar {
  border-top: 0;
}

.nm-panel-modalOverlay {
  background: #fff;
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  margin-bottom: 0px;
  padding: 0;
  box-shadow: 0 0 7px rgba(0, 0, 0, .5);
}

.nm-panel__content {
  padding: var(--settings-panel-vertical-spacing) var(--settings-panel-horizontal-spacing);
  position: relative;
}

.nm-panel__content .nm-formAnchor {
  padding: .75rem .75rem;
}

.nm-panel__content .btn {
  font-size: 12px;
}

.nm-panel>.nm-toolbar {
  flex-shrink: 0;
  padding: 6px 7px 6px;
}

.nm-panel>.nm-toolbar:first-child {
  padding-left: 12px;
}

.nm-panel__tree {
  margin: var(--spacing-2) 0;
}

.nm-panel__loading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--spacing-8);
}

.nm-panel__loading:after {
  content: "";
  display: block;
  width: var(--spacing-4);
  height: var(--spacing-4);
  border: 1px solid var(--color-primary);
  border-right: none;
  border-radius: 50%;
  animation: .8s spin infinite;
  transition: .3s opacity;
}

.nm-panel__progress {
  padding: var(--spacing-2) 0;
  margin-bottom: var(--spacing-1)
}

:root {
  --primary: #0876aa;
  --primary-hover: #01618d;
  --default: #fff;
  --red: #ef3b24;
}

.nm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  min-width: 0;
  border-bottom: 1px solid #e6e6e6;
}

.nm-toolbar-buttonContainer {
  position: relative;
}

.nm-toolbar-section {
  flex-basis: auto;
  display: flex;
  min-width: 0;
}

.nm-toolbar-section--left {
  order: 1;
  flex-grow: 1;
  align-items: center;
}

.nm-toolbar-section--left>.nm-toolbar-buttonContainer+.nm-toolbar-buttonContainer {
  margin-left: var(--spacing-1);
}

.nm-panel__footer .nm-toolbar-section--left {
  flex-shrink: 0;
}

.nm-toolbar-section--center {
  order: 2;
  flex-grow: 1;
  flex-basis: 100%;
  margin-left: var(--spacing-2);
  margin-right: var(--spacing-1)
}

.nm-toolbar-section--center:empty {
  flex-grow: 0;
  flex-basis: 0%
}

.nm-toolbar-section--right {
  flex-grow: 0;
  flex-shrink: 0;
  order: 3;
  justify-content: flex-end;
  margin-left: var(--spacing-2);
}

.nm-toolbar-section--right .nm-toolbar-buttonContainer+.nm-toolbar-buttonContainer {
  margin-left: var(--spacing-1);
}

.nm-toolbar--error {
  background-color: var(--color-error100);
  color: var(--color-error);
}


.nm-titleInput {
  position: relative;
  border-bottom-color: transparent;
  padding: 0;
  width: 100%;
  margin: 0;
}

.nm-titleInput-editIcon {
  display: flex;
  align-items: center;
  align-self: center;
  padding-left: var(--spacing-3);
  font-size: 12px;
  color: var(--color-grey700);
  position: absolute;
  right: 0;
  bottom: 1px;
  top: 1px;
  opacity: 0;
  transform: translateX(4px);
  transition: .3s opacity, .3s transform, .3s color;
  pointer-events: none;
  background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, white 50%);
  background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, white 50%);
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 50%);
}

.nm-titleInput-input {
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  height: auto;
  text-overflow: ellipsis;
}

.nm-titleInput-input:focus {
  font-weight: normal;
}

.nm-titleInput--showPen>.nm-titleInput-editIcon {
  color: var(--color-primary700);
  transform: none;
}

.nm-titleInput--showPen .nm-titleInput-editIcon,
.nm-titleInput:hover .nm-titleInput-editIcon {
  opacity: 1;
  transform: none;
}

.nm-titleInput--showPen .nm-titleInput-editIcon {
  color: var(--color-primary700);
}

.nm-titleInput--showPen input {
  padding-right: var(--spacing-5);
}

.nm-textInput {
  --charWidth: 10px;
  display: block;
  min-width: 50px;
  width: 100%;
  height: var(--spacing-8);
  padding: 0 var(--spacing-1);
  margin: 0;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-grey);
  border: 0;
  border-bottom: 1px solid var(--color-grey200);
  border-top: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
  transition: .3s border, .3s box-shadow, .3s background;
}

.nm-textInput:hover:not([readonly]):not(:disabled) {
  background-color: var(--color-white);
  box-shadow: 0 4px 4px -3px rgba(var(--color-black-rgb), 0.07);
}

.nm-textInput:focus:not([readonly]):not(:disabled) {
  border-bottom: 1px solid var(--color-primary200);
  box-shadow: 0 4px 4px -3px rgba(var(--color-primary-rgb), 0.25);
  background-color: var(--color-white);
}

.nm-textInput:focus {
  outline: none;
}

.nm-textInput--stealth {
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.nm-textInput--stealth:hover {
  border-bottom: 1px solid var(--color-grey200);
}

.nm-textInput--stealth:focus {
  font-weight: 400;
  border-bottom: 1px solid var(--color-primary200);
}

.has-error .nm-textInput,
.nm-textInput--showInvalidIfBlurred:not(:focus):not(:hover),
.nm-textInput--isInvalid:not(:focus):not(:hover),
.nm-textInput--invalid:not(:focus):not(:hover) {
  background-color: var(--color-error100);
  border-bottom: 1px solid var(--color-error300);
  color: var(--color-error);
}

.nm-textInput::placeholder {
  color: var(--color-grey600);
  opacity: 1;
}

.nm-textInput--xsm {
  height: var(--spacing-4);
  font-size: 11px;
  --charWidth: 7px;
}

.nm-textInput--lg {
  font-size: 15px;
}

.nm-textInput--alignRight {
  text-align: right;
}

.nm-textInput--alignCenter {
  text-align: center;
}

.nm-textInput:disabled {
  color: var(--color-grey500);
  border-bottom: 1px solid var(--color-grey150);
  background: var(--color-white);
}

.nm-textInput:disabled::placeholder {
  color: var(--color-grey500);
}

.nm-textInput[readonly] {
  font-style: italic;
  color: var(--color-grey800);
  border-bottom: 1px solid transparent;
}

.nm-textInput::-webkit-calendar-picker-indicator {
  display: block;
  width: var(--spacing-4);
  height: var(--spacing-8);
  right: 0;
  top: 0;
  padding: 0;
  margin: 0 0 0 auto;
  background-size: var(--spacing-3) var(--spacing-3);
  background-position: center center;
}